<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta name="description" content="" />
    <meta name="author" content="ChongMing" />
    <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=0">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-touch-fullscreen" content="yes">
    <meta name="full-screen" content="yes">
    <meta name="screen-orientation" content="portrait">
    <meta name="x5-fullscreen" content="true">
    <meta name="360-fullscreen" content="true">
<title>高级体检</title>
</head>
<link href="../css/reset.min.css" rel="stylesheet" type="text/css" />
<link href="../css/examination/layout.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="../css/ekang.css"/>
<script src="../js/jquery.min.js"></script>
<script src="../js/jquery.mobile-1.4.3.js"></script>
<script src="../js/main.js"></script>
<script src="../js/jquery.cookie.js"></script>
<script src="../js/ekang.js"></script>
<script>
    $(function(){
        Main.get(textUrl+'wish/index/physical',{type:7,appointment_type:5},function(res){
            if(res.ret==0){
                var detail_l = res.data.ios.detail.length;
                for(var i=0;i<detail_l;i++){
                    var detail_imgUrl = res.data.ios.detail[i]
                    r=i+1
                    document.getElementById('tijian').innerHTML+='<img onclick="examination_for($(this))" data-id="'+r+'" src="'+res.data.ios.detail[i][0]+'">'
                }

                //成功执行
            }else if(res.ret==1){
                alert(res.msg);
            }
        });

        $('#back').on('click', function () {
            history.go(-1);
        });
    });

    function examination_for (o){
        if($.cookie("local_userId")){
            var id = o.data("id");
            location.href = "examination_for.html?physics_id="+id;
        }else{
            location.href = "../login.html";
        }

    }
</script>
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js" type="text/javascript"></script>
<script src="../js/weixin2.js"></script>
<body>
<!--// 导航条-->
<div style="width: 100%;height: 45px;background-color: #38a16d;position: fixed;z-index: 10000">
    <h1 class="nav-title" style="font-size: 18px;">高级体检</h1>
    <img src="../img/BackIcon.png" alt="返回" class="nav-backImg" id="back"/>
</div>
<br/>
<br/>
<br/>
<div class="main">
    <div class="tijian" id="tijian">
    </div>
</div>
</body>
</html>
